export default {
  path: "/",
  redirect: "/inquiry/CustomerInquiry",
  meta: {
    icon: "ri:user-2-fill",
    // showLink: false,
    title: "询价管理",
    rank: 3
  },
  children: [
    {
      path: "/inquiry/addProduct",
      name: "添加商品",
      component: () =>
        import("@/views/InquiryManage/components/AddProduct.vue"),
      meta: {
        title: "添加商品",
        showParent: true,
        showLink: false,
        roles: ["admin", "sale"]
      }
    },
    {
      path: "/inquiry/CustomerInquiry",
      name: "客户询价",
      component: () => import("@/views/InquiryManage/CustomerInquiry.vue"),
      meta: {
        title: "客户询价",
        showParent: true,
        roles: ["admin", "sale"]
      }
    },
    {
      path: "/inquiry/customerInquiryDetail",
      name: "客户询价单详情",
      component: () =>
        import("@/views/InquiryManage/components/CustomerInquiryDetail.vue"),
      meta: {
        title: "客户询价详情",
        showLink: false,
        roles: ["admin", "sale"]
      }
    },
    {
      path: "/inquiry/saleInquiry",
      name: "销售询价单",
      component: () =>
        import("@/views/InquiryManage/components/SaleInquiry.vue"),
      meta: {
        title: "销售询价单",
        showLink: false,
        roles: ["sale"]
      }
    },
    {
      path: "/inquiry/productQuote",
      name: "产品报价",
      component: () =>
        import("@/views/InquiryManage/components/ProductQuote.vue"),
      meta: {
        title: "产品报价",
        showLink: true,
        roles: ["sale"]
      }
    }
  ]
} satisfies RouteConfigsTable;
